import request from '@/util/request'

export function getOne(serialno,params) {
  return request({
    url: `/device/${serialno}`,
    method: 'get',
    params
  })
}

export function setField(serialno,params){
	return request({
	  url: `/device/${serialno}/setField`,
	  method: 'patch',
	  params
	})
}
